//
//  BaseModel.m
//  多玩盒子
//
//  Created by 刘胜 on 16/2/27.
//  Copyright © 2016年 刘胜. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

-(instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}

+(instancetype)modelWithDictionary:(NSDictionary *)dictionary {
    return [[self alloc] initWithDictionary:dictionary];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end
